import request from '@/utils/request'
import BaseUrl from '@/utils/BaseUrl'

/**
 * @description: 字典管理-人员字典API
 * @author:  MqSql
 * @version: 1.0
 * @date: 2020-08-05 00:32:31
 */

/**
 * 列表
 * @param query
 * @returns
 */
export function listDicPerson(query) {
  return request({
    url: BaseUrl.API_DIC + '/dic/person/list',
    data: query
  })
}

/**
 * 删除
 * @param data
 * @returns
 */
export function deleteDicPerson(data) {
  return request({
    url: BaseUrl.API_DIC + '/dic/person/delete',
    data: data
  })
}

/**
 * 增加
 * @param data
 * @returns
 */
export function addDicPerson(data) {
  return request({
    url: BaseUrl.API_DIC + '/dic/person/add',
    data: data
  })
}

/**
 * 修改
 * @param data
 * @returns
 */
export function updateDicPerson(data) {
  return request({
    url: BaseUrl.API_DIC + '/dic/person/update',
    data: data
  })
}

/**
 * 获取单个
 * @param query
 * @returns
 */
export function getDicPerson(query) {
  return request({
    url: BaseUrl.API_DIC + '/dic/person/get',
    data: query
  })
}
